<#include "../inc/head.ftl"/>
	</head>
<body>
    <div id="button-bar" style="margin-top:-10px;margin-bottom:5px;">
        <a href="javascript:addAjax(600,400)" class="easyui-linkbutton">添加</a>
        <a href="javascript:dels()" class="easyui-linkbutton">删除</a>
    </div>
    <table id="tt" class="easyui-datagrid" style="width:100%;min-height:500px;height:90%"
            data-options="
            	url:'${pre_url}?is_json=1',	//请求数据的地址,is_json=1用于区别是返回json数据
            	rownumbers:false,	//是否显示左边的行号
            	pagination:true,	//是否有底部的分页
            	method:'post',		//数据的请求方式
        	 	remoteSort:true,	//是否是远程排序
                multiSort:true,		//是否可以多条件排序
                checkbox:true,		//允许多选
                singleSelect:false,	//为true表示只能单选
            	toolbar:'#tb',
            	onClickCell: onClickCell,
            	onAfterEdit:onAfterEdit
            	"
            >
        <thead>
            <tr>
            	<th data-options="field:'ck',checkbox:true"></th>
                <th align="center" data-options="field:'id',width:80,sortable:true">编号</th>
                <th align="center" data-options="field:'user_name',sortable:true">昵称</th>
                <th align="center" data-options="field:'mobile',width:80,sortable:true">手机号</th>
                <th align="center" data-options="field:'money',width:80,sortable:true">余额</th>
                <th align="center" data-options="field:'score',width:60,sortable:true,editor:'numberbox'">积分</th>
                <th align="center" data-options="field:'fx_money',width:60,sortable:true,editor:'numberbox'">佣金</th>
                <th align="center" data-options="field:'group_name',width:60,sortable:true">等级</th>
                <th align="center" data-options="field:'create_time',width:160,sortable:true">注册时间</th>
                <th align="center" data-options="field:'is_effect',width:60,sortable:true">状态</th>
                <th align="center" data-options="field:'group_id'" formatter="formatOperation">操作</th>
            </tr>
        </thead>
    </table>
    
    <!-- 搜索的地方 -->
    <div id="tb" style="padding:2px 5px;">
    	编号:<input class="easyui-textbox js-search" name="mk_eq.id" style="width:110px">
    	名称:<input class="easyui-textbox js-search" name="mk_like.user_name" style="width:110px">
    	手机:<input class="easyui-textbox js-search" name="mk_like.mobile" style="width:110px">
    	注册时间 从: <input class="easyui-datetimebox js-search" style="width:150px" name="mk_gte.create_time">
       	 到: <input class="easyui-datetimebox js-search" style="width:150px" name="mk_lte.create_time">
       	 等级: 
        <select class="easyui-combobox js-search" panelHeight="auto" style="width:100px" name="mk_eq.group_id">
        	<option value="0">请选择</option>
        	<#list groups as item>
        		<option value="${item.id}">${item.name}</option>
        	</#list>
        </select>
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch()">搜索</a>
    </div>
    
	<div id="win"></div>  
	
	
	<script type="text/javascript" src="${project_url}/common/js/admins/common_script.js?ver=2016110821107"></script>
	<script type="text/javascript" src="${project_url}/common/js/admins/user/index.js?ver=2016111114104"></script>
    
<#include "../inc/foot.ftl"/>